#ifndef __GLES2DEFINES_H__
#define __GLES2DEFINES_H__


#ifdef WIN32
#include "GL/glew.h"
#endif

#ifdef ANDROID
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#endif

#if defined(WIN32) && defined(_DEBUG)
#define PAUSE_APP	system("pause");
#else
#define PAUSE_APP
#endif


#define checkGlError(op) \
	{	\
		GLint error = 0;	\
		for (error = glGetError(); error; error = glGetError()) {	\
			LOGE("after %s() glError (0x%x) in file %s at line %i", op, error, __FILE__, __LINE__);	\
			PAUSE_APP;	\
		}	\
	}

#endif